import { ApiProperty } from '@nestjs/swagger';
import { BaseResponseVo, BaseVo, PaginationVo } from 'src/common/vo/common.vo';

class Picture {
  @ApiProperty({ description: '图片地址' })
  src: string;

  @ApiProperty({ description: '图片签名' })
  sign: string;
}

export class PictureVo extends BaseVo {
  @ApiProperty({ description: '图片地址' })
  src: string;

  @ApiProperty({ description: '图片签名' })
  sign: string;
}

export class PictureListVo {
  @ApiProperty({
    description: '图片列表',
    type: [Picture],
  })
  list: Picture[];

  @ApiProperty({
    description: '分页信息',
    type: PaginationVo,
  })
  pagination: PaginationVo;
}

export class PictureListResponseVo extends BaseResponseVo {
  @ApiProperty({
    description: '图片列表',
    type: PictureListVo,
  })
  data: PictureListVo;
}
